package com.jf.identity.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 考生验证信息
 *
 * @author FCG
 */
public class ExamineeVerifyInfo extends Examinee {
    private static final long serialVersionUID = 3074065734472677063L;
    private String examId;
    private String examSessionNum;
    private String orgCode;
    private String deviceId;
    private List<Examinee> examinees = new ArrayList<>();

    public ExamineeVerifyInfo() {

    }

    public ExamineeVerifyInfo(ExamBaseParam examBaseParam, Examinee examinee) {
        if (examBaseParam == null || examinee == null) {
            return;
        }
        this.examId = examBaseParam.getExamId();
        this.examSessionNum = examBaseParam.getExamSessionNum();
        this.orgCode = examBaseParam.getOrgCode();
        this.deviceId = examBaseParam.getDeviceId();
        this.setExamineeNum(examinee.getExamineeNum());
        this.setIdCardNum(examinee.getIdCardNum());
        this.setVerifyTypeId(examinee.getVerifyTypeId());
        this.setVerifyResult(examinee.getVerifyResult());
        this.setDateTime(examinee.getDateTime());
        this.setUid(examinee.getUid());
    }

    public String getExamId() {
        return examId;
    }

    public void setExamId(String examId) {
        this.examId = examId;
    }

    public String getExamSessionNum() {
        return examSessionNum;
    }

    public void setExamSessionNum(String examSessionNum) {
        this.examSessionNum = examSessionNum;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public List<Examinee> getExaminees() {
        return examinees;
    }

    public void setExaminees(List<Examinee> examinees) {
        this.examinees = examinees;
    }

    @Override
    public String toString() {
        return super.toString()+"ExamineeVerifyInfo{" +
                "examId='" + examId + '\'' +
                ", examSessionNum='" + examSessionNum + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", examinees=" + examinees +
                '}';
    }
}
